Working With Times
The Movie Toolbox provides a number of functions that allow you to work with time structures. This section describes those functions.All of these functions work with time structures (see "The Time Structure" on page 2-65 for a complete discussion of the time structure). You can use time structures to represent either time values or durations. Time values specify a point in time, relative to a given time base. Durations specify a span of time, relative to a given time scale. Durations are represented by time structures that have the time base set to 0 (that is, the
base
field in the time structure is set tonil
).You can use the
ConvertTime
function to convert a time you obtain from one time base into a time that is relative to another time base. Similarly, you can use theConvertTimeScale
function to convert a time from one time scale to another.You can add two times by calling the
AddTime
function; you can subtract two times with theSubtractTime
function.
Subtopics
- AddTime
- SubtractTime
- ConvertTime
- ConvertTimeScale